<?php

namespace app\common\model\mycurrency;

use think\Model;
use traits\model\SoftDelete;

class UserFeedback extends Model
{

    use SoftDelete;

    

    // 表名
    protected $name = 'mycurrency_user_feedback';
    
    const STATUS_WEIHUEIFU = 1;//未回复
    const STATUS_YIHUIFU = 2;//已回复


    public function user()
    {
        return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


    public function admin()
    {
        return $this->belongsTo('app\admin\model\Admin', 'reply_admin_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
